﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace System
{
    public class WeakReference<T>:WeakReference
        where T: class
    {
        public WeakReference(T target)
            : base(target) { }
        public WeakReference(T targer, bool trackResurrection)
            : base(targer, trackResurrection) { }
        public WeakReference(SerializationInfo info, StreamingContext context)
            : base(info, context) { }

        public T TargetA {
            get
            {
                return (T)base.Target;
            }
            set
            {
                Target = value;
            }
        }
    }
}
